﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ServeurRSS_1_0.Source.Model;

namespace ServeurRSS_1_0
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IServiceUserManagement" in both code and config file together.
    [ServiceContract]
    public interface IServiceUserManagement
    {
        #region userService;

        [OperationContract]
        string checkMail(string mail);

        [OperationContract]
        string checkLogin(string mail);
        
        [OperationContract]
        string registerUser(DataUser user);

       [OperationContract]
        string eraseUser(System.Guid userid, String loginToErase);
       
        [OperationContract]
        DataUser getUserProfileById(System.Guid userid);

        [OperationContract]
        DataUser getUserProfileByLogin(String login);

        [OperationContract]
        List<DataUser> getListOfUser();

        [OperationContract]
        bool authenticateUser(DataUser user);

        [OperationContract]
        bool updateUser(DataUser user);

        [OperationContract]
        string closeSession(string login);

        #endregion

    }
}

